#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
	int number, i, j,k,n=1;
	for (k = 1; k > 0; printf("\nnew game\t"))
	{
		srand(time(NULL));
		number = rand() % 100 + 1;
		printf("please guess the number(input101 end):");
		scanf("%d", &j);
		if (j == 101)
		{
			printf("END!");
			break;
		}
		for (i = 1; i < 10; ++i)
		{
			if (j == number)
			{
				printf("\nright,number is %d", number);
				printf("\ntimes:%d", n);
				break;
			}
			if (j < number)
			{
				printf("\nsmall");
			}
			else
				printf("\nbig");
			printf("\nplease guess the number:");
			scanf("%d", &j);
			++n;
		}
		if (j == 10)
		{
			printf("game over");
		}
	}
	return 0;
}